package cn.good.yan.w5.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 自定义异常
 * @author shengren.yan
 * @create 2022-04-05
 */
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR, reason = "用户访问太多")
public class UserTooManyException extends RuntimeException{

//    @Getter
//    @Setter
//    private Long uid;
//
//    public UserTooManyException(Long uid) {
//        super("用户id：" + uid + "用户访问太多！");
//    }

    public UserTooManyException() {
        super("用户访问太多");
    }

    public UserTooManyException(String msg) {
        super(msg);
    }

}
